CC = gcc
SOURCES = $(wildcard sources/*.c) main.c
OBJS = $(patsubst %.c, %.o, $(SOURCES))
CFLAGS = -c -Iheaders 

all:$(OBJS)
	$(CC) -o a.out $(OBJS) -lsqlite3 -pthread

%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm -f $(OBJS) a.out